import axios from '@/utils/request.js'

function filter(data) {
    return axios({
        url: '/api/user/admin/filter',
        method: "POST",
        data
    })
}


function all() {
    return axios({
        url: '/api/user/admin/all',
        method: "POST"
    })
}


function edit(data) {
    return axios({
        url: '/api/user/admin/edit',
        method: "POST",
        data
    })
}


function del(id) {
    return axios({
        url: '/api/user/admin/del/' + id,
        method: "POST",
    })
}


function add(data) {
    return axios({
        url: '/api/user/admin/add',
        method: "POST",
        data
    })
}


export {all, edit, del, add,filter}